<?php
/**
 * Controller for app
 */
require_once 'app/env.php';
$view = new Views\Feedback();

//show submit form, or do feedback saving
if (@$_GET['action'] == 'save') {
	$view->saveForm($_POST);
} else {
	$view->viewForm($_GET['b']);
}